Avoid calling PHP directly in build process#11335
Avoid calling PHP directly in build process#11335desrosj wants to merge 1 commit intoWordPress:trunkfrom
Conversation
Test using WordPress PlaygroundThe changes in this pull request can previewed and tested using a WordPress Playground instance. WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser. Some things to be aware of
For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation. |
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
I think when I added the original code I saw that the PHP files included an with I had to perform a couple web searches to find the I’m still perplexed by how this is a problem, and what makes this particular build step distinct from the other basic requirements of PHP. is running all of this in While I don’t want to delay any changes that are necessary, I’m just wanting to double-check our values when introducing more |
While it's true that WordPress cannot be run without PHP, the build script has never required PHP to be present to prepare While it's true that it could be run within the Docker image, many contributors do not use the local Docker environment at all, and requiring someone to pull large containers (the |
87e0591 to
396aef8
Compare
peterwilsoncc
left a comment
There was a problem hiding this comment.
This looks good to me and tests well.
Testing notes:
- Unlinked PHP installations (via
brew unlink) - Checkout trunk
- Run
npm run grunt clean:qunit; npm run build:dev - Reproduced build error seen on GH actions
- Observed changes to the generated script loader files
- Checkout this PR
- Run
npm run grunt clean:qunit; npm run build:dev - Completed error free
- Observed the generated script loader files matched the committed versions
I am satisfied that the npm package introduced is currently maintained.
This removes the
phpcommand in the build script introduced in r61873.Trac ticket: Core-64925
Use of AI Tools
AI assistance: Yes
Tool(s): Claude Code
Model(s): Sonnet 4.6
Used for: Used to create the first draft of this PR.
This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.